//
//  AXFShopPayProductCell.m
//  AXFEightGroup
//
//  Created by ya on 12/28/16.
//  Copyright © 2016 ya. All rights reserved.
//

#import "AXFShopPayProductCell.h"
#import "AXFDataModel.h"


@interface AXFShopPayProductCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *amountLabel;


@end

@implementation AXFShopPayProductCell

- (void)setModel:(AXFDataModel *)model {
    _model = model;

    self.nameLabel.text   = model.name;
    self.priceLabel.text  = @"$".link(model.partner_price);
    self.amountLabel.text = @"x".link(NSStringFromInteger(model.productAmount));
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
